import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        int vegetable = 1;
        Scanner scanner = new Scanner(System.in);
        while (vegetable > 0){
            System.out.println("请输入查看的菜品（1：白菜；2：青萝卜；3：芸豆；4：芹菜）");
            vegetable = scanner.nextInt();
            String result = switch (vegetable){
                case 0 ->"程序运行结束";
                case 1 ->"1：白菜，1.5元/斤";
                case 2 ->"2：青萝卜，2元/斤";
                case 3 ->"3：芸豆，3元/斤";
                case 4 ->"4：芹菜，1.8元/斤";
                default -> "没有找到商品";
            };
            System.out.println(result);
        }
        scanner.close();
    }
}